#ifndef __MYSTDIO_H__
#define __MYSTDIO_H__

#include<string.h>
#define FLUSH_NOW 1
#define FLUSH_LINE 2
#define FLUSH_ALL 4
#define SIZE 1024
typedef struct IO_FILE{
  int _fileno; 
  int flag;
  //char inbuff[SIZE];
  //int in_pos
  char outbuff[SIZE]; //输出缓冲区

  int out_pos;

}_FILE;

_FILE *_fopen(const char* filename,const char* flag);

int _fwrite(const void *ptr,size_t size,int n,_FILE* fp);

void _fclose(_FILE* fp);
#endif
